import { useQuery, gql } from '@apollo/client'
import React from 'react'

const GET_ACITVE = gql`
  {
    activeItems(first: 5, where: { Buyer: "0x0000000000000000000000000000000000000000" }) {
      id
      Buyer
      seller
      nftaddress
      tokenid
      price
    }
  }
`
export default function GraphExample() {
  const { loading, error, data } = useQuery(GET_ACITVE)
  console.log(data)

  return <div>hi</div>
}
